import { RouteRecordRaw } from "vue-router";
import layout from '@/layouts/index.vue'


/**
 * @description 路由参数配置简介
 * @param path ==> 路由菜单访问路径
 * @param name ==> 路由 name (对应页面组件 name)
 * @param redirect ==> 路由重定向地址
 * @param component ==> 视图文件路径
 * @param meta ==> 路由菜单元信息
 * @param meta.title ==> 路由标题 (用作 document.title || 菜单的名称)
 * @param meta.icon ==> 菜单和面包屑对应的图标
 * @param meta.activeMenu ==> 当前路由为详情页时，需要高亮的菜单
 * @param meta.isLink ==> 是否是路由外链
 * @param meta.link ==> 路由外链时填写的访问地址
 * @param meta.isHide ==> 是否在菜单中隐藏 (通常列表详情页需要隐藏)
 * @param meta.isFull ==> 菜单是否全屏 (示例：数据大屏页面)
 * @param meta.isAffix ==> 菜单是否固定在标签页中 (首页通常是固定项)
 * @param meta.newWindow ==> 菜单是否固定在标签页中 (首页通常是固定项)
 * */
export const dynamicRouter: RouteRecordRaw[] = [
    {
        path: '/user-manage',
        name: 'user-manage',
        component: layout,
        redirect: "/user-manage/user-list",
        meta: {
            title: '用户管理',
            icon: 'icon-RectangleCopy4',
            activeMenu: "",
            isHide: false,
            isAffix: true,
            isFull: false,
            isLink: false,
            link: "",
        },
        children: [
            {
                path: '/user-list/index',
                name: 'user-list',
                component: () => import('@/views/user-manage/user-list/index.vue'),
                meta: {
                    title: '用户列表',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
            {
                path: '/user-manage/roles-manage',
                name: 'roles-manage',
                component: () => import('@/views/user-manage/roles-manage/index.vue'),
                meta: {
                    title: '角色管理',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
            {
                path: '/user-manage/menus-manage',
                name: 'menus-manage',
                component: () => import('@/views/user-manage/menus-manage/index.vue'),
                meta: {
                    title: '菜单管理',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
        ]
    },
    {
        path: '/system',
        name: 'system',
        component: layout,
        redirect: "/system/dictionaries-manage",
        meta: {
            title: '系统管理',
            icon: 'icon-dicengjiagou',
            activeMenu: "",
            isHide: false,
            isAffix: true,
            isFull: false,
            isLink: false,
            link: "",
        },
        children: [
            {
                path: '/system/dictionaries-manage',
                name: 'dictionaries-manage',
                component: () => import('@/views/system/dictionaries-manage/index.vue'),
                meta: {
                    title: '字典管理',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
            {
                path: '/system/iconfont-manage',
                name: 'iconfont-icons',
                component: () => import('@/views/system/iconfont-manage/index.vue'),
                meta: {
                    title: 'IconFont 图标',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
            {
                path: '/system/advertisement-manage',
                name: 'advertisement-manage',
                component: () => import('@/views/system/advertisement-manage/index.vue'),
                meta: {
                    title: '广告管理',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
            {
                path: '/system/classification-manage',
                name: 'classification-manage',
                component: () => import('@/views/system/classification-manage/index.vue'),
                meta: {
                    title: '分类管理',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },

        ]
    },
    {
        path: '/navigation-station',
        name: 'navigation-station',
        component: layout,
        meta: {
            title: '导航站',
            icon: 'icon-RectangleCopy74',
            activeMenu: "",
            isHide: false,
            isAffix: true,
            isFull: false,
            isLink: false,
            link: "",
        },
        children: [
            {
                path: '/navigation-station/index',
                name: 'navigation-station',
                component: () => import('@/views/navigation-station/index/index.vue'),
                meta: {
                    title: '站点列表',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
            {
                path: '/site-inclusion/index',
                name: 'site-inclusion',
                component: () => import('@/views/navigation-station/site-inclusion/index.vue'),
                meta: {
                    title: '站点收录',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
        ]
    },
    {
        path: '/message-manage',
        name: 'message-manage',
        component: layout,
        meta: {
            title: '消息管理',
            icon: 'icon-RectangleCopy46',
            activeMenu: "",
            isHide: false,
            isAffix: true,
            isFull: false,
            isLink: false,
            link: "",
        },
        children: [
            {
                path: '/leave-message/index',
                name: 'leave-message',
                component: () => import('@/views/message-manage/leave-message/index.vue'),
                meta: {
                    title: '留言管理',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
            {
                path: '/work-order/index',
                name: 'work-order',
                component: () => import('@/views/message-manage/work-order/index.vue'),
                meta: {
                    title: '工单管理',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
            {
                path: '/notice-announcement/index',
                name: 'notice-announcement',
                component: () => import('@/views/message-manage/notice-announcement/index.vue'),
                meta: {
                    title: '通知公告',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
        ]
    },
    {
        path: '/about/index',
        name: 'about',
        component: layout,
        meta: {
            title: '关于',
            icon: 'icon-RectangleCopy28',
            activeMenu: "",
            isHide: false,
            isAffix: true,
            isFull: false,
            isLink: false,
            link: "",
        },
        children: [
            {
                path: '/about/index',
                name: 'about',
                component: () => import('@/views/about/index.vue'),
                meta: {
                    title: '关于',
                    icon: '',
                    activeMenu: "",
                    isHide: false,
                    isAffix: true,
                    isFull: false,
                    isLink: false,
                    link: "",
                },
            },
        ]
    },
]